#include "client.c"
#include "server.c"
//#include "node.c"
#include <pthread.h>

/*extern void client_start();
extern void server_start();
extern void server_close();
extern struct node *create();
extern struct node *add(struct node *head, struct node *last);*/

int main()
{

    /*struct node *p, *p2;
    p = create();
    p2 -> id = 1;
    //strcpy(p2->buff, "shsshsshggy");
    //add(p, p2);
    printf("%d, %s\n", p->id, p->buff);
    while (p->next != NULL){
        p = p->next;
        printf("%d, %s\n", p->id, p->buff);
    }*/

    pthread_t server_id;
    pthread_create(&server_id, NULL, (void*)server_start, NULL);
    pthread_t id_client;
    pthread_create(&id_client, NULL, (void*)client_start, NULL);
    //pthread_join(id_client, NULL);
//    server_close();
    //pthread_join(server_id, NULL);
    return 0;
}